package com.examlpe.lotterysystem.service.dto;

import com.examlpe.lotterysystem.service.enums.ActivityStatusEnum;
import lombok.Data;

@Data
public class ActivityDTO {
    private Long activityId;
    private String activityName;
    private String description;
    private ActivityStatusEnum status;
    //判断活动状态
    public Boolean valid() {
        return status.equals(ActivityStatusEnum.RUNNING);
    }
}
